package com.base.po.czb_sdk;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class GasOilpriceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GasOilpriceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOilnoIsNull() {
            addCriterion("oilNo is null");
            return (Criteria) this;
        }

        public Criteria andOilnoIsNotNull() {
            addCriterion("oilNo is not null");
            return (Criteria) this;
        }

        public Criteria andOilnoEqualTo(Integer value) {
            addCriterion("oilNo =", value, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoNotEqualTo(Integer value) {
            addCriterion("oilNo <>", value, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoGreaterThan(Integer value) {
            addCriterion("oilNo >", value, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("oilNo >=", value, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoLessThan(Integer value) {
            addCriterion("oilNo <", value, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoLessThanOrEqualTo(Integer value) {
            addCriterion("oilNo <=", value, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoIn(List<Integer> values) {
            addCriterion("oilNo in", values, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoNotIn(List<Integer> values) {
            addCriterion("oilNo not in", values, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoBetween(Integer value1, Integer value2) {
            addCriterion("oilNo between", value1, value2, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnoNotBetween(Integer value1, Integer value2) {
            addCriterion("oilNo not between", value1, value2, "oilno");
            return (Criteria) this;
        }

        public Criteria andOilnameIsNull() {
            addCriterion("oilName is null");
            return (Criteria) this;
        }

        public Criteria andOilnameIsNotNull() {
            addCriterion("oilName is not null");
            return (Criteria) this;
        }

        public Criteria andOilnameEqualTo(String value) {
            addCriterion("oilName =", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameNotEqualTo(String value) {
            addCriterion("oilName <>", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameGreaterThan(String value) {
            addCriterion("oilName >", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameGreaterThanOrEqualTo(String value) {
            addCriterion("oilName >=", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameLessThan(String value) {
            addCriterion("oilName <", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameLessThanOrEqualTo(String value) {
            addCriterion("oilName <=", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameLike(String value) {
            addCriterion("oilName like", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameNotLike(String value) {
            addCriterion("oilName not like", value, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameIn(List<String> values) {
            addCriterion("oilName in", values, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameNotIn(List<String> values) {
            addCriterion("oilName not in", values, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameBetween(String value1, String value2) {
            addCriterion("oilName between", value1, value2, "oilname");
            return (Criteria) this;
        }

        public Criteria andOilnameNotBetween(String value1, String value2) {
            addCriterion("oilName not between", value1, value2, "oilname");
            return (Criteria) this;
        }

        public Criteria andOiltypeIsNull() {
            addCriterion("oilType is null");
            return (Criteria) this;
        }

        public Criteria andOiltypeIsNotNull() {
            addCriterion("oilType is not null");
            return (Criteria) this;
        }

        public Criteria andOiltypeEqualTo(String value) {
            addCriterion("oilType =", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeNotEqualTo(String value) {
            addCriterion("oilType <>", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeGreaterThan(String value) {
            addCriterion("oilType >", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeGreaterThanOrEqualTo(String value) {
            addCriterion("oilType >=", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeLessThan(String value) {
            addCriterion("oilType <", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeLessThanOrEqualTo(String value) {
            addCriterion("oilType <=", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeLike(String value) {
            addCriterion("oilType like", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeNotLike(String value) {
            addCriterion("oilType not like", value, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeIn(List<String> values) {
            addCriterion("oilType in", values, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeNotIn(List<String> values) {
            addCriterion("oilType not in", values, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeBetween(String value1, String value2) {
            addCriterion("oilType between", value1, value2, "oiltype");
            return (Criteria) this;
        }

        public Criteria andOiltypeNotBetween(String value1, String value2) {
            addCriterion("oilType not between", value1, value2, "oiltype");
            return (Criteria) this;
        }

        public Criteria andPriceyfqIsNull() {
            addCriterion("priceYfq is null");
            return (Criteria) this;
        }

        public Criteria andPriceyfqIsNotNull() {
            addCriterion("priceYfq is not null");
            return (Criteria) this;
        }

        public Criteria andPriceyfqEqualTo(BigDecimal value) {
            addCriterion("priceYfq =", value, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqNotEqualTo(BigDecimal value) {
            addCriterion("priceYfq <>", value, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqGreaterThan(BigDecimal value) {
            addCriterion("priceYfq >", value, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("priceYfq >=", value, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqLessThan(BigDecimal value) {
            addCriterion("priceYfq <", value, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqLessThanOrEqualTo(BigDecimal value) {
            addCriterion("priceYfq <=", value, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqIn(List<BigDecimal> values) {
            addCriterion("priceYfq in", values, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqNotIn(List<BigDecimal> values) {
            addCriterion("priceYfq not in", values, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("priceYfq between", value1, value2, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPriceyfqNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("priceYfq not between", value1, value2, "priceyfq");
            return (Criteria) this;
        }

        public Criteria andPricegunIsNull() {
            addCriterion("priceGun is null");
            return (Criteria) this;
        }

        public Criteria andPricegunIsNotNull() {
            addCriterion("priceGun is not null");
            return (Criteria) this;
        }

        public Criteria andPricegunEqualTo(BigDecimal value) {
            addCriterion("priceGun =", value, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunNotEqualTo(BigDecimal value) {
            addCriterion("priceGun <>", value, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunGreaterThan(BigDecimal value) {
            addCriterion("priceGun >", value, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("priceGun >=", value, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunLessThan(BigDecimal value) {
            addCriterion("priceGun <", value, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunLessThanOrEqualTo(BigDecimal value) {
            addCriterion("priceGun <=", value, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunIn(List<BigDecimal> values) {
            addCriterion("priceGun in", values, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunNotIn(List<BigDecimal> values) {
            addCriterion("priceGun not in", values, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("priceGun between", value1, value2, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPricegunNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("priceGun not between", value1, value2, "pricegun");
            return (Criteria) this;
        }

        public Criteria andPriceofficialIsNull() {
            addCriterion("priceOfficial is null");
            return (Criteria) this;
        }

        public Criteria andPriceofficialIsNotNull() {
            addCriterion("priceOfficial is not null");
            return (Criteria) this;
        }

        public Criteria andPriceofficialEqualTo(BigDecimal value) {
            addCriterion("priceOfficial =", value, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialNotEqualTo(BigDecimal value) {
            addCriterion("priceOfficial <>", value, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialGreaterThan(BigDecimal value) {
            addCriterion("priceOfficial >", value, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("priceOfficial >=", value, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialLessThan(BigDecimal value) {
            addCriterion("priceOfficial <", value, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialLessThanOrEqualTo(BigDecimal value) {
            addCriterion("priceOfficial <=", value, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialIn(List<BigDecimal> values) {
            addCriterion("priceOfficial in", values, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialNotIn(List<BigDecimal> values) {
            addCriterion("priceOfficial not in", values, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("priceOfficial between", value1, value2, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceofficialNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("priceOfficial not between", value1, value2, "priceofficial");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdIsNull() {
            addCriterion("price_gas_id is null");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdIsNotNull() {
            addCriterion("price_gas_id is not null");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdEqualTo(String value) {
            addCriterion("price_gas_id =", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdNotEqualTo(String value) {
            addCriterion("price_gas_id <>", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdGreaterThan(String value) {
            addCriterion("price_gas_id >", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdGreaterThanOrEqualTo(String value) {
            addCriterion("price_gas_id >=", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdLessThan(String value) {
            addCriterion("price_gas_id <", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdLessThanOrEqualTo(String value) {
            addCriterion("price_gas_id <=", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdLike(String value) {
            addCriterion("price_gas_id like", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdNotLike(String value) {
            addCriterion("price_gas_id not like", value, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdIn(List<String> values) {
            addCriterion("price_gas_id in", values, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdNotIn(List<String> values) {
            addCriterion("price_gas_id not in", values, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdBetween(String value1, String value2) {
            addCriterion("price_gas_id between", value1, value2, "priceGasId");
            return (Criteria) this;
        }

        public Criteria andPriceGasIdNotBetween(String value1, String value2) {
            addCriterion("price_gas_id not between", value1, value2, "priceGasId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}